#ifndef AcceptConnectionThread_h__
#define AcceptConnectionThread_h__

#include "Thread.h"

class AcceptConnectionThread : public Thread
{
public:
    AcceptConnectionThread() : m_listenPort(0), m_accepting(true) {}
    void SetPort(int port){m_listenPort = port;}
    void StopAccepting(){m_accepting = false;}
private:
    virtual void Work();
    int m_listenPort;
    bool m_accepting;

};

#endif // AcceptConnectionThread_h__
